<!-- 设置考核结果 -->
<template>
    <div>
        <a-modal
            title="设置考核结果"
            :visible="visible"
            @ok="handleOk"
            @cancel="visible = false"
            :width="300"
        >
            <div style="display:flex;align-items:center'">
                <span>考核结果：</span>
                <a-radio-group v-model="fkhjg">
                    <a-radio value="通过">通过</a-radio>
                    <a-radio value="不通过">不通过</a-radio>
                </a-radio-group>
            </div>
        
        </a-modal>
    </div>
</template>
<script>
import { jcylxjhupdateLxUserKhjg } from './service/index'
export default {
    components:{

    },
    props:{

    },
    data(){
        return{
            visible:false,
            fkhjg:'',
            ids:'',
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.ids = row
        },
        handleOk(){
            if(this.fkhjg){
                jcylxjhupdateLxUserKhjg({ids:this.ids,fkhjg:this.fkhjg}).then(res=>{
                    if(res.code == 200){
                        this.$message.success(res.message)
                        this.$emit('refreshTable4Change')
                        this.visible = false
                    }else{
                        this.$message.warning(res.message)
                    }
                })
            }else{
                this.$message.warning('请先选择考核结果')
            }
        },
    }
}
</script>